/**
 * 
 */
package com.xintoucloud.gsv.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xintoucloud.gsv.entity.SupervisionType;
import com.xintoucloud.gsv.mapper.SupervisionTypeMapper;
import com.xintoucloud.gsv.service.SupervisionTypeService;

/**
 * @author xiang
 *
 */
@Service@Transactional
public class SupervisionTypeServiceImpl implements SupervisionTypeService{

	@Autowired
	private SupervisionTypeMapper supervisionTypeMapper;
	
	@Override
	public List<SupervisionType> list() {
		return supervisionTypeMapper.listSupervisionType();
	}

	@Override
	public void addSupervisionType(SupervisionType supervisionType) {
		supervisionTypeMapper.addSupervisionType(supervisionType);
	}

	@Override
	public void deleteSupervisionType(int sid) {
		supervisionTypeMapper.deleteSupervisionType(sid);
	}

	
	@Override
	public void updateSupervisionType(SupervisionType supervisionType) {
		supervisionTypeMapper.updateSupervisionType(supervisionType);
	}

}
